import Vue from 'vue'
import VueRouter from 'vue-router'
import Helloworld from "../components/HelloWorld"
import Test from "../components/Test"

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Helloworld',
        component: Helloworld
    },
    {
        path: '/test',
        name: 'Test',
        component: Test
    }
]

const router = new VueRouter({
    mode: 'history',
    base: '/',
    routes
})

export default router